import {request} from "../common/js/request.js"
const getCarts= (data) =>{
	return request({
		url:'/cart/noPage',
		method:'GET',
		data
	});
}
const addCarts= (data)=>{
	return request({
		url:'/cart',
		method:'post',
		data
	});
}
const deleteCarts=(data)=>{
	return request({
		url:'/cart',
		method:'delete',
		data
	});
}
const updateCarts=(data)=>{
	return request({
		url:'/cart',
		method:'put',
		data
	});
}

export{
	getCarts,addCarts,deleteCarts,updateCarts
}